home *** CD-ROM | disk | FTP | other *** search
- Path: arapaho.cse.ucsc.edu!ray
- From: ray@cse.ucsc.edu (Ray Swartz)
- Newsgroups: comp.lang.c++
- Subject: for (int i(1); ...)
- Date: 21 Feb 1996 21:24:54 GMT
- Organization: UC Santa Cruz CIS/CE
- Message-ID: <4gg2j6$93g@darkstar.UCSC.EDU>
- NNTP-Posting-Host: arapaho.cse.ucsc.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- I noticed that the syntax
-
- for (int i(1); ...)
-
- works just like
-
- for (int i = 1; ...)
-
-
- however, I've not seen this used anywhere.
-
- This seems odd to me since initializing by assignment is seen as misleading
- when applied to objects.
-
- Should
-
- for (int i(1);...)
-
-
- even be used?
-
- Ray
-
-